//
//  SinglePickerView.h
//  BusinessListing
//
//  Created by ZERO on 16/6/1.
//  Copyright © 2016年 com.ChengLian.company. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SinglePickerView;

typedef NS_ENUM(NSInteger, SingleListType){
    SingleListTypeBusiness = 0,
    SingleListTypeID,                         // 身份类型
    SingleListTypeCompensate    ,             // 赔付类型
    SingleListTypeInsuranceCompany,           // 保险公司
    SingleListTypeAgent,                      // 投保机构

};

@protocol SinglePickerViewDelegate <NSObject>

- (void)complete:(UIView *)pickerView tempStr:(NSString *)str idStr:(NSString *)idstr;

@end

@interface SinglePickerView : UIView

@property (nonatomic, strong) NSArray     *arr;// 本地数组
@property (nonatomic, strong) NSString *typeNum;

- (instancetype)init;

- (void)showInView; // 出现

- (void)cancelPicker; // 退出

@property (nonatomic, assign) id<SinglePickerViewDelegate> delegate;
@property (nonatomic, assign) SingleListType Type;

/**
 默认值,只能在控件初始化后才能使用
 默认选中第一个
 */
@property (nonatomic, copy) NSString *defaultID;
@property (nonatomic, copy) NSString *defaultVal;
@end
